exports.searchNode = (req,res) => {

    var restfulParams = req.routeInfo.restfulParams;

    var resultData = [];

    //获取当前主节点下的所有子节点信息
    function searchMasterNode(cb){

        var searchStr = "";

        if(restfulParams.u_type == 1){
            searchStr = "/or/os_id-"+restfulParams.master_id+"|os_child_fid-"+restfulParams.master_id+"/os_child_type/0";
        }else{
            searchStr = "/or/os_id-"+restfulParams.master_id+"|os_child_fid-"+restfulParams.master_id;
        }
        
        R.SEND_HTTP(
            req,
            res,
            {
                url: CORE_APIConfig.coreAPI.organizationalStructureSearch.Request_Api_Url + searchStr + "/os_is_delete/0",
                method : 'POST'
            },
            function (data) {

                resultData = data.result;

                cb();
                
            }
        )

    }

    F.Serial([searchMasterNode],() => {
        RES.successResponse(res,resultData);
    })



}